<template>
   <el-table 
   ref="multipleTable"
   border
   @selection-change="handleSelectionChange"
   :header-cell-style="{backgroundColor:'#edecfe'}"
    :data="arry"
    height="665"
    style="width: 100%;padding:0 30px;">
    <el-table-column
      label="序号"
      width="80">
    <template slot-scope="scope"><span> {{ scope.$index + 1 }}</span></template> 
    </el-table-column>
    <el-table-column
      label="订单状态"
      width="90">
    <template slot-scope="scope"><span style="color:#54e1b7;"> {{ scope.row.nowshow }}</span></template> 
    </el-table-column>
    <el-table-column
      label="订单类型"
      width="100">
    <template slot-scope="scope"><span style="color:#6a6dfa;"> {{ scope.row.type }}</span></template> 
    </el-table-column>
     <el-table-column
      prop="number"
      label="订单编号"
      width="150">
    </el-table-column>
     <el-table-column
      prop="username"
      label="姓名"
      width="100">
    </el-table-column>
     <el-table-column
      prop="hourse"
      label="科室"
      width="80">
    </el-table-column>
     <el-table-column
      prop="doctor"
      label="医生"
      width="100">
    </el-table-column>
      <el-table-column
      prop="pianyi"
      label="优惠(元)"
      width="50">
    </el-table-column>
      <el-table-column
      prop="income"
      label="应收(元)"
      width="50">
    </el-table-column>
     <el-table-column
      prop="nowincome"
      label="实收(元)"
      width="50">
    </el-table-column>
     <el-table-column
      prop="yibao"
      label="医保(元)"
      width="50">
    </el-table-column>
     <el-table-column
      prop="ip"
      label="会员卡(元)"
      width="70">
    </el-table-column>
     <el-table-column
      prop="money"
      label="现金(元)"
      width="50">
    </el-table-column>
     <el-table-column
      prop="zhifubao"
      label="支付宝(元)"
      width="70">
    </el-table-column>
     <el-table-column
      prop="payv"
      label="微信(元)"
      width="50">
    </el-table-column>
     <el-table-column
      prop="payy"
      label="银行卡(元)"
      width="70">
    </el-table-column>
     <el-table-column
      prop="incomedate"
      label="收费日期"
      width="200">
    </el-table-column>
     <el-table-column
      prop="user"
      label="收费员"
      width="80">
    </el-table-column>
     <el-table-column
      label="操作"
      width="100">
      <template slot-scope="scope">
        <el-button @click="handleEdit(scope.row)" type="text" size="small" style="color:#6a6dfa">查看详细</el-button>
    </template>
      
    </el-table-column>
   
  </el-table>
</template>

<script>
import bus from '../../../util/eventBus.js'
export default {
  props:['arry'],
  data(){
    return {
      nowshowObj:{
        0:'已收费',
        1:'未收费'
      },
      typeObj:{
        0:'处方开立',
        1:'个人购买'
      },
      hourseObj:{
        0:'全科',
        1:'内科',
        2:'外科'
      },
      // arry:[{
        // id:1,
        // nowshow:'已收费',
        // type:'处方开立',
        // number:14234234,
        // username:'张三',
        // hourse:'全科',
        // doctor:'李四',
        // pianyi:300,
        // income:450,
        // nowincome:234,
        // yibao:340,
        // ip:344,
        // money:455,
        // zhifubao:349,
        // payv:345,
        // payy:345,
        // incomedate:'2022-08-23 10:24:20',
        // user:'王五'
      // }],
      multipleTable:[]
    }
  },
  methods:{
     handleSelectionChange(val) {
        this.multipleSelection = val;
       },
     handleEdit(row) {//点击查看明细
     console.log(row);
        bus.$emit('dataopendialog',row)
      }
  }
}
</script>
<style lang="less" scoped>
 /deep/.cell {
  text-align: center;
 }

.el-table::before {
  height: 0;
}

.el-table--border{
  border:0;
}


</style>
